package sg.tua.game;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class TUAGame extends StateBasedGame {

	private static int MAINMENUSTATE = 0;
	private static int OVERVIEWSTATE = 1;
	private static int COOKINGSTATE = 2;
	private static int TUANALYSISSTATE = 3;
	
	TUAGame(){
		super("Tua Analysis Serious Game");
		this.addState(new MainMenuState(MAINMENUSTATE));
		this.addState(new OverviewState(OVERVIEWSTATE));
		this.addState(new CookingState(COOKINGSTATE));
		this.addState(new TUAnalysisState(TUANALYSISSTATE));	
		this.enterState(COOKINGSTATE);
	}
	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		// TODO Auto-generated method stub
		this.getState(MAINMENUSTATE).init(gc,this);
		this.getState(OVERVIEWSTATE).init(gc,this);
		this.getState(COOKINGSTATE).init(gc,this);
		this.getState(TUANALYSISSTATE).init(gc,this);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) throws SlickException{
        AppGameContainer game = new AppGameContainer(new TUAGame());    
        game.setDisplayMode(1024, 768, false);
        game.setShowFPS(false);
        game.start();

	}

}
